package cn.wolfcode.crm.service;

import cn.wolfcode.crm.domain.Employee;
import cn.wolfcode.crm.qo.EmployeeQueryObject;
import com.github.pagehelper.PageInfo;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

public interface IEmployeeService {
    void saveOrUpdate(Employee employee, Long[] ids);
    void delete(Long id);
    Employee getEmployeeById(Long id);
    List<Employee> getAll();


    PageInfo<Employee> selectByQuery(EmployeeQueryObject queryObject);

    Employee getEmployeeByNameAndPassword(String name, String password);

    void batchDelete(Long[] ids);

    void importXls(MultipartFile file) throws IOException;

    List<Employee> queryByRoleSn(String[] strings);

}
